package com.solin.blog.web;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author solin
 * @description BlogWebApplication
 * @since 2021/12/27 14:00
 */
@EnableSwagger2
//spring boot 默认扫描 Application 所在包层级的，如果需要个更改范围
@SpringBootApplication(scanBasePackages = "com.solin.blog")
//com/solin/blog/dao/mapper
@MapperScan("com.solin.blog.dao.mapper")
@Slf4j
//配置servlet 的扫描路径
@ServletComponentScan(basePackages = "com.solin.blog.web")
public class BlogWebApplication {
    public static void main(String[] args) {
        SpringApplication.run(BlogWebApplication.class,args);
        log.info("http://localhost:8080/solin-dev/swagger-ui.html");
    }
}
